import {createSlice} from "@reduxjs/toolkit";
import useSetStorage from "@/hooks/useSetStorage";

export const contentManageSlice = createSlice({
    name: "contentManageSlice",
    initialState: () => {
        return {
            params: {},
            rowData: {}
        };

    },
    reducers: {
        set_params(state,action){
        state.params = action.payload
        },
        set_rowData(state,action){
            state.rowData = action.payload
        }
    }
});

export const {
    set_params,
    set_rowData,
} = contentManageSlice.actions;